package com.donghu;

import java.util.ArrayList;
import java.util.Arrays;

public class E {

    public static void main(String[] args) {

        // 调用C中方法，获取文件信息
        C c = new C();
        String information = c.read();
        String[] stringarr = information.split("");// 用逗号隔开
        System.out.println("数组：" + Arrays.toString(stringarr));

        ArrayList arrayList = new ArrayList();
        for (String number : stringarr) {
            if (isNumber(number) == true){
                arrayList.add(number);
            }
        }
        System.out.println("新的整数数组为：" + arrayList);

        F.main(arrayList);
    }

    public static Boolean isNumber(String str) {
        switch (str) {
            case "0":
            case "1":
            case "2":
            case "3":
            case "4":
            case "5":
            case "6":
            case "7":
            case "8":
            case "9":
                return true;
        }
        return false;
    }
}
